import layout from '@/layout/index.vue'
const businessRouter = {
  sort: 4,
  path: '/business',
  component: layout,
  redirect: 'index',
  meta: {
    title: '电商管理',
    menuId: '15',
    icon: '电商'
  },
  children: [
    {
      path: '/business/goods',
      name: 'goodsRouter',
      component: () => import('@v/business/goods'),
      meta: {
        sort: 41,
        title: '商品管理',
        menuId: '16',
        icon: '商品'
      }
    },
    {
      path: '/business/goods/detail/:id',
      name: 'goodsDetailRouter',
      component: () => import('@v/business/goods/detail.vue'),
      hidden: true,
      meta: {
        title: '商品详情',
        icon: '登录日志'
      }
    },
    {
      path: '/business/goods/importStore/:id',
      name: 'importStoreRouter',
      component: () => import('@v/business/goods/importStore.vue'),
      hidden: true,
      meta: {
        title: '商品管理入库',
        icon: '登录日志'
      }
    },
    {
      path: '/business/order',
      name: 'orderRouter',
      component: () => import('@v/business/order'),
      meta: {
        sort: 40,
        title: '订单管理',
        menuId: '17',
        icon: '订单'
      }
    },
    {
      path: '/business/order/detail/:id', // 动态路由
      name: 'orderDetailRouter',
      component: () => import('@v/business/order/detail.vue'),
      hidden: true,
      meta: {
        title: '订单管理详情',
        icon: '登录日志'
      }
    },
    {
      path: '/business/limit',
      name: 'limitRouter',
      component: () => import('@v/business/limit'),
      meta: {
        sort: 43,
        title: '额度管理',
        menuId: '18',
        icon: '额度'
      }
    },
    {
      path: '/business/limit/record/:id',
      name: 'recordRouter',
      component: () => import('@v/business/limit/record.vue'),
      hidden: true,
      meta: {
        title: '额度管理记录',
        icon: '登录日志'
      }
    },
    {
      path: '/business/percentage',
      name: 'percentageRouter',
      component: () => import('@v/business/percentage'),
      meta: {
        sort: 44,
        title: '提成统计',
        menuId: '21',
        icon: '提成管理'
      }
    },
    {
      path: '/business/vip',
      name: 'vipRouter',
      component: () => import('@v/business/vip'),
      meta: {
        sort: 45,
        title: '会员管理',
        menuId: '19',
        icon: '会员'
      }
    },
    {
      path: '/business/vip/detail/:id',
      name: 'vipDetailRouter',
      component: () => import('@v/business/vip/detail.vue'),
      hidden: true,
      meta: {
        title: '会员管理详情',
        icon: '登录日志'
      }
    },
    {
      path: '/business/vip/record/:id',
      name: 'vipRecordRouter',
      component: () => import('@v/business/vip/record.vue'),
      hidden: true,
      meta: {
        title: '会员管理修正记录',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address',
      name: 'addressRouter',
      component: () => import('@v/business/address'),
      meta: {
        sort: 46,
        title: '站点管理',
        menuId: '20',
        icon: '站点'
      }
    },
    {
      path: '/business/address/siter/:id',
      name: 'addressSiterRouter',
      component: () => import('@v/business/address/siter.vue'),
      hidden: true,
      meta: {
        title: '站点管理(站长)',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address/refund/:id',
      name: 'refundRouter',
      component: () => import('@v/business/address/refund.vue'),
      hidden: true,
      meta: {
        title: '退款记录',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address/refund/detail/:id',
      name: 'refundDetailRouter',
      component: () => import('@v/business/address/detail/refund.vue'),
      hidden: true,
      meta: {
        title: '退款记录详细',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address/purchase/:id',
      name: 'purchaseRouter',
      component: () => import('@v/business/address/purchase.vue'),
      hidden: true,
      meta: {
        title: '采购记录',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address/purchase/detail/:id',
      name: 'purchaseDetailRouter',
      component: () => import('@v/business/address/detail/purchase.vue'),
      hidden: true,
      meta: {
        title: '采购记录详细',
        icon: '登录日志'
      }
    },
    {
      path: '/business/address/stock/:id',
      name: 'stockRouter',
      component: () => import('@v/business/address/stock.vue'),
      hidden: true,
      meta: {
        title: '库存详情',
        icon: '登录日志'
      }
    }
  ]
}
export default businessRouter
